{% extends "base.html" %}

{% load i18n %}

{% block extra_head_base %}
    {% block extra_head %}{% endblock %}
{% endblock %}

{% block logo_link_image %}
	<a href="{% url home %}"><img src="{{ STATIC_URL }}images/logo.png" alt="Toefl.mn"/></a>
{% endblock %} 
{% block twitter_link_image %}

{% endblock %}

{% block login %}
  <link rel="stylesheet" href="{{ STATIC_URL }}css/site_tabs.css" />

      
        <div id="login">
      <div id = "twitter">
      	<a href="http://www.twitter.com">
        	<img border="0" src="{{ STATIC_URL }}images/twitters.png" width="30" height="30"/>
        </a>
     	<a href="http://www.facebook.com">
        	<img border="0" src="{{ STATIC_URL }}images/faces.png" width="30" height="30"/></a>
		</div>
		
      	{% if user.is_authenticated %}
      		{{ user.username }}: <a href="{% url auth_logout %}">{% trans "logout" %}</a>
      		<a href="/profile/{{user.id}}">{% trans "profile" %}</a>
      	{% else %}
      		<a href="{% url home %}">{% trans "login" %}</a> эсвэл <a href="{% url registration_register %}">{% trans "signup" %}</a>
      	{% endif %}
  	  </div>
{% endblock %}

      	
 
{% block right_tabs %}

		{% if user.is_authenticated %}
        <ul class="tabs">{% spaceless %}
        	<li id="tab_start"><a href="{% url home %}">{% trans "ЭХЛЭЛ" %}</a></li>
        	<li id="tab_medee"><a href="{% url articles %}">{% trans "МЭДЭЭ" %}</a></li>
            <li id="tab_exams"><a href="{% url all_exams %}">{% trans "TOEFL iBT" %}</a></li>
            <li id="tab_notices"><a href="{% url universities 1 %}">{% trans "ИХ ДЭЭД СУРГУУЛЬ" %}{% if notice_unseen_count %} ({{ notice_unseen_count }}){% endif %}</a></li>
            <li id="tab_stuw"><a href="{% url institutions %}">{% trans "СУРГАЛТЫН ТӨВ"%}</a></li>
            <li id="tab_file"><a href="{% url files %}">{% trans "ФАЙЛЫН САН"%}</a></li>
        {% endspaceless %}</ul>
        
        <form action="{% url search %}" method="GET">
	   		<input id="search_box" type="text" name="q" maxlength="30"/>
        </form> 
    {% endif %}
{% endblock %}

{% block footer %}
	<div id="footer_aguulga">
      		<a href="{% url about %}">{% trans "Сайтын тухай" %}</a> | 
    		<a href="{% url contact %}">{% trans "Бидэнтэй холбогдох" %}</a>
			<br />
    		{% trans "&copy; 2011 TOEFL.mn Зохиогчийн бүх эрхийг хуулиар хамгаалсан" %}
	</div>
{% endblock %}

{% block extra_body_base %}
    {% block extra_body %}{% endblock %}
{% endblock %}
